﻿namespace Traffic.Entity;

/// <summary>
/// 第三方订单信息
/// </summary>
public partial class OrderListThirdChannel
{
    public int Id { get; set; }

    /// <summary>
    /// 主订单ID，对应OrderList.ID
    /// </summary>
    public int MainOrderId { get; set; }

    /// <summary>
    /// 主订单号，对应OrderList.OrderNum
    /// </summary>
    public string MainOrderNum { get; set; } = null!;

    /// <summary>
    /// 第三方渠道名称
    /// </summary>
    public string? ThirdChannelName { get; set; }

    /// <summary>
    /// 操作类型
    /// </summary>
    public string? OperFunction { get; set; }

    /// <summary>
    /// 创建时间
    /// </summary>
    public DateTime CreateDate { get; set; }

    /// <summary>
    /// 第三方订单ID
    /// </summary>
    public string? ThirdOrderNum { get; set; }

    /// <summary>
    /// 总价
    /// </summary>
    public decimal TotalPrice { get; set; }

    /// <summary>
    /// 结算价
    /// </summary>
    public decimal Settlement { get; set; }

    /// <summary>
    /// 手续费
    /// </summary>
    public decimal Commission { get; set; }

    /// <summary>
    /// 退款额
    /// </summary>
    public decimal Refund { get; set; }

    /// <summary>
    /// 支付时间
    /// </summary>
    public DateTime? PayTime { get; set; }

    /// <summary>
    /// 退款时间
    /// </summary>
    public DateTime? RefundTime { get; set; }

    /// <summary>
    /// 第三方Data数据
    /// </summary>
    public string? OrderData { get; set; }

    /// <summary>
    /// 第三方记录状态  0：停用  1：正常  2：完成   3：异常  4：退款
    /// </summary>
    public int ThirdWayState { get; set; }
}
